//
//  AskForLeaTableViewCell.m
//  AttendenceSys
//
//  Created by ld on 16/1/17.
//  Copyright © 2016年 窦芳俊. All rights reserved.
//

#import "AskForLeaTableViewCell.h"

@implementation AskForLeaTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        [self initCell];
    }
    return self;
}

- (void)initCell
{
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    
    UIView* bgView = [[UIView alloc] initWithFrame:CGRectMake(0, 10, [UIScreen mainScreen].bounds.size.width,60-10)];
    bgView.backgroundColor = [UIColor whiteColor];
   
    _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 12, [UIScreen mainScreen].bounds.size.width, 50-12*2)];
    [_titleLabel setBackgroundColor:[UIColor clearColor]];
    _titleLabel.font = [UIFont systemFontOfSize:18];
    [_titleLabel setTextAlignment:NSTextAlignmentLeft];
    _titleLabel.textColor = [UIColor blackColor];
    [bgView addSubview:_titleLabel];
    
    _imgView = [[UIImageView alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width-10.5-20, 25, 10.5, 20)];
    [_imgView setBackgroundColor:[UIColor clearColor]];
    [_imgView setImage:[UIImage imageNamed:@"ic_next"]];
    
    
    [self.contentView addSubview:bgView];
    [self.contentView addSubview:_imgView];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
